home comics writing pictures archive about

PrintHex4Test.asm

Language: 8080 Assembly
Last Modified: 2022-11-12 4:27:45 PM UTC
File Size: 642 bytes
http://www.penguinstew.ca/example/AltairHexDump/PrintHex4Test.asm
.org 0
LXI SP, 173000Q ; 000000: 061 000 366 Init stack pointer
MVI A, 3Q ; 000003: 076 003 Clear/Init 2SIO port
OUT 20Q ; 000005: 323 020
MVI A, 25Q ; 000007: 076 025
OUT 20Q ; 000011: 323 020
MVI C, 00Q ; 000013: 016 000 Init nibble to 0
LOOP: MOV A, C ; 000015: 171
CALL PrintHex4 ; 000016: 315 355 366 Print nibble
INR C ; 000021: 014 Increment nibble
JMP LOOP ; 000022: 303 015 000
1
2
3
4
5
6
7
8
9
10
11